<template>
	<view>
		<salesman-info :salesmanData="salesmanData"></salesman-info>
	</view>
</template>

<script>
	import {
		salesmanInfo
	} from "@/api/store.js"
	export default {
		data() {
			return {
				salesmanData:[]
			};
		},
		onLoad(){
			this.getSalesmanInfo();
		},
		methods:{
			async getSalesmanInfo(){
				const {code,data,msg} = await salesmanInfo();
				if(code == 1){
					this.salesmanData = data;
				}
				
			}
		}
	}
</script>

<style lang="scss">

</style>
